<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_id" data-rule="required" data-source="jdy/device/index" class="form-control selectpage" name="row[device_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device1_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device1_id" data-rule="required" data-source="jdy/device/index" class="form-control selectpage" name="row[device1_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Device2_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device2_id" data-rule="required" data-source="jdy/device/index" class="form-control selectpage" name="row[device2_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warning_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-warning_type" data-rule="required" class="form-control selectpicker" name="row[warning_type]">
                {foreach name="warningTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="即時告警"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warning_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="warningStatusList" item="vo"}
            <label for="row[warning_status]-{$key}"><input id="row[warning_status]-{$key}" name="row[warning_status]" type="radio" value="{$key}" {in name="key" value="在線"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[delay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Replay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-replay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[replay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warning_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-warning_switch" data-rule="required" class="form-control selectpicker" name="row[warning_switch]">
                {foreach name="warningSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="開啟"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warning1_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="warning1StatusList" item="vo"}
            <label for="row[warning1_status]-{$key}"><input id="row[warning1_status]-{$key}" name="row[warning1_status]" type="radio" value="{$key}" {in name="key" value="在線"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warning_way')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-warning_way" data-rule="required" class="form-control selectpicker" name="row[warning_way]">
                {foreach name="warningWayList" item="vo"}
                    <option value="{$key}" {in name="key" value="一般設置"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_t1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d0_t1" class="form-control" name="row[d0_t1]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_t2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d0_t2" class="form-control" name="row[d0_t2]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_t3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d0_t3" class="form-control" name="row[d0_t3]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_standard_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-d0_standard_switch" data-rule="required" class="form-control selectpicker" name="row[d0_standard_switch]">
                {foreach name="d0StandardSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="關閉"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_standard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d0_standard" class="form-control" name="row[d0_standard]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d0_top" class="form-control" name="row[d0_top]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_online')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d0_online" class="form-control" name="row[d0_online]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D0_offline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d0_offline" class="form-control" name="row[d0_offline]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_t1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d1_t1" class="form-control" name="row[d1_t1]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_t2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d1_t2" class="form-control" name="row[d1_t2]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_t3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d1_t3" class="form-control" name="row[d1_t3]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_standard_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-d1_standard_switch" data-rule="required" class="form-control selectpicker" name="row[d1_standard_switch]">
                {foreach name="d1StandardSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="關閉"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_standard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d1_standard" class="form-control" name="row[d1_standard]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d1_top" class="form-control" name="row[d1_top]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_online')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d1_online" class="form-control" name="row[d1_online]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D1_offline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d1_offline" class="form-control" name="row[d1_offline]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_t1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d2_t1" class="form-control" name="row[d2_t1]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_t2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d2_t2" class="form-control" name="row[d2_t2]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_t3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d2_t3" class="form-control" name="row[d2_t3]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_standard_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-d2_standard_switch" data-rule="required" class="form-control selectpicker" name="row[d2_standard_switch]">
                {foreach name="d2StandardSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="關閉"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_standard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d2_standard" class="form-control" name="row[d2_standard]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d2_top" class="form-control" name="row[d2_top]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_online')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d2_online" class="form-control" name="row[d2_online]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D2_offline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d2_offline" class="form-control" name="row[d2_offline]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_t1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d3_t1" class="form-control" name="row[d3_t1]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_t2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d3_t2" class="form-control" name="row[d3_t2]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_t3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d3_t3" class="form-control" name="row[d3_t3]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_standard_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-d3_standard_switch" data-rule="required" class="form-control selectpicker" name="row[d3_standard_switch]">
                {foreach name="d3StandardSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="關閉"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_standard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d3_standard" class="form-control" name="row[d3_standard]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d3_top" class="form-control" name="row[d3_top]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_online')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d3_online" class="form-control" name="row[d3_online]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D3_offline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d3_offline" class="form-control" name="row[d3_offline]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_t1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d4_t1" class="form-control" name="row[d4_t1]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_t2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d4_t2" class="form-control" name="row[d4_t2]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_t3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d4_t3" class="form-control" name="row[d4_t3]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_standard_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-d4_standard_switch" data-rule="required" class="form-control selectpicker" name="row[d4_standard_switch]">
                {foreach name="d4StandardSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="關閉"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_standard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d4_standard" class="form-control" name="row[d4_standard]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d4_top" class="form-control" name="row[d4_top]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_online')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d4_online" class="form-control" name="row[d4_online]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D4_offline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d4_offline" class="form-control" name="row[d4_offline]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_t1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d5_t1" class="form-control" name="row[d5_t1]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_t2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d5_t2" class="form-control" name="row[d5_t2]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_t3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d5_t3" class="form-control" name="row[d5_t3]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_standard_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-d5_standard_switch" data-rule="required" class="form-control selectpicker" name="row[d5_standard_switch]">
                {foreach name="d5StandardSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="關閉"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_standard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d5_standard" class="form-control" name="row[d5_standard]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d5_top" class="form-control" name="row[d5_top]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_online')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d5_online" class="form-control" name="row[d5_online]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D5_offline')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d5_offline" class="form-control" name="row[d5_offline]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D6_t1')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d6_t1" class="form-control" name="row[d6_t1]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D6_t2')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d6_t2" class="form-control" name="row[d6_t2]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D6_t3')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d6_t3" class="form-control" name="row[d6_t3]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D6_standard_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-d6_standard_switch" data-rule="required" class="form-control selectpicker" name="row[d6_standard_switch]">
                {foreach name="d6StandardSwitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="關閉"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D6_standard')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d6_standard" class="form-control" name="row[d6_standard]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D6_top')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d6_top" class="form-control" name="row[d6_top]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('D6_online')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-d6_online" class="form-control" name="row[d6_online]" type="number" value="0">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <!--<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
        </div>
    </div>
</form>
